home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac: Not for Sale
/
Another.not.for.sale (Australia).iso
/
hold me in your arms
/
Nexus
/
nexus.software
/
lynx.local-edit
< prev
next >
Wrap
Internet Message Format
|
1994-05-22
|
2KB
From: mac18@cus.cam.ac.uk (Sparky)
Subject: WWW Solution
To: nexus-gaia@netcom.com (Nexus Gaia)
Date: Tue, 10 May 1994 04:14:49 +0100 (BST)
Yes goddit! Figured out a way to do local editing and pass it to the
server from _any_ account for the bulletin board. You may be interested
in this Dave for letting people edit files to be included in pages using
a decent local editor on their machine...
You use a version of lynx compiled to excute commands (easily
done from a nexus ftp site). Then make a page as follows...
...
<a href="lynexec:edit_article.sh">Edit reply to article</a>
<a href="file://localhost/home/mac18/.wwwboard_article.html">Post reply</a>
...
edit_article.sh :
#!/bin/sh
$EDITOR /tmp/article.$$
cat header html and /tmp/article$$ as hidden data in a form
with the submit button saying Post it to .wwwboard_article.html
rm /tmp/article.$$
Simple as that. The orgional page has to be created using a CGI script
so that you can insert the users home path, but thats easy enough to write
(this would be something they would have to specify in a signup configuration
thing).
The post it button submits the form back to the server with the file
included as hidden data! Ive tried the linking and it works - haven't tried
the form but I can't see that would be a problem (unless theres a size
limit). Ill try and get a working demo up to see if it all really does work.
Phew, thats one solved I hope.
-Mark
--
_ /\/| _ _ / _ Email: mac18@cus.cam.ac.uk IRC: Brandoch
/ |_( /_/ '_/7 SnailMail: 363 Kings College, Cambridge, England
Mark Cheverton \_) Battle PBeM: finger battle@cygnus.cp.tn.tudelft.nl
Electronic Cafe: http://www.cp.tn.tudelft.nl/~battle/mark/ecafe/ecafe.html